import { meta } from "@turf/turf";

/*
 * @Descripttion:
 * @Author: 笙痞
 * @Date: 2022-10-13 16:54:33
 * @LastEditors: 不浪 897411954@qq.com
 * @LastEditTime: 2025-06-14 09:19:22
 */
const EmptyRouterView = () =>
  import("@/views/routerViews/emptyRouterViews.vue");
const routes = [
  {
    path: "/particle",
    component: EmptyRouterView,
    meta: {
      title: "粒子效果",
    },
    children: [
      {
        path: "snow",
        name: "particle_snow",
        component: () => import("@/views/particle/snow.vue"),
        meta: {
          title: "下雪",
          activePath: "/particle/snow",
        },
      },
      {
        path: "rain",
        name: "particle_rain",
        component: () => import("@/views/particle/rain.vue"),
        meta: {
          title: "下雨",
          activePath: "/particle/rain",
        },
      },
      {
        path: "fog",
        name: "particle_fog",
        component: () => import("@/views/particle/fog.vue"),
        meta: {
          title: "大雾",
          activePath: "/particle/fog",
        },
      },
      {
        path: "fire",
        name: "particle_fire",
        component: () => import("@/views/particle/fire.vue"),
        meta: {
          title: "火焰",
          activePath: "/particle/fire",
        },
      },
    ],
  },
  {
    path: "/camera",
    component: EmptyRouterView,
    meta: {
      title: "相机",
    },
    children: [
      {
        path: "fly",
        name: "camera_fly",
        component: () => import("@/views/camera/fly.vue"),
        meta: {
          title: "飞行",
          activePath: "/camera/fly",
        },
      },
    ],
  },
  {
    path: "/mark",
    component: EmptyRouterView,
    meta: {
      title: "打点",
    },
    children: [
      {
        path: "primitive",
        name: "mark_primitive",
        component: () => import("@/views/mark/primitive.vue"),
        meta: {
          title: "底层打点",
          activePath: "/mark/primitive",
        },
      },
      {
        path: "combine",
        name: "mark_combine",
        component: () => import("@/views/mark/combine.vue"),
        meta: {
          title: "聚合",
          activePath: "/mark/combine",
        },
      },
    ],
  },
  {
    path: "/renderServe",
    component: EmptyRouterView,
    meta: {
      title: "服务加载",
    },
    children: [
      {
        path: "xyz",
        name: "renderServe_xyz",
        component: () => import("@/views/renderServe/xyz.vue"),
        meta: {
          title: "xyz瓦片",
          activePath: "/renderServe/xyz",
        },
      },
      {
        path: "3dtiles",
        name: "renderServe_3dtiles",
        component: () => import("@/views/renderServe/3dtiles.vue"),
        meta: {
          title: "3D Tiles",
          activePath: "/renderServe/3dtiles",
        },
      },
    ],
  },
  {
    path: "/material",
    component: EmptyRouterView,
    meta: {
      title: "材质",
    },
    children: [
      {
        path: "highlightRoad",
        name: "material_highlightRoad",
        component: () => import("@/views/material/highlightRoad.vue"),
        meta: {
          title: "道路闪烁",
          activePath: "/material/highlightRoad",
        },
      },
      {
        path: "throughRoad",
        name: "material_throughRoad",
        component: () => import("@/views/material/throughRoad.vue"),
        meta: {
          title: "道路穿梭",
          activePath: "/material/throughRoad",
        },
      },
      {
        path: "radiant",
        name: "material_radiant",
        component: () => import("@/views/material/radiant.vue"),
        meta: {
          title: "辐射圈",
          activePath: "/material/radiant",
        },
      },
      {
        path: "diffuse",
        name: "material_diffuse",
        component: () => import("@/views/material/diffuse.vue"),
        meta: {
          title: "圆扩散",
          activePath: "/material/diffuse",
        },
      },
      {
        path: "colorLayer",
        name: "material_colorLayer",
        component: () => import("@/views/material/colorLayer.vue"),
        meta: {
          title: "四色图",
          activePath: "/material/colorLayer",
        },
      },
      {
        path: "water",
        name: "material_water",
        component: () => import("@/views/material/water.vue"),
        meta: {
          title: "流动水面",
          activePath: "/material/water",
        },
      },
      {
        path: "skybox",
        name: "material_skybox",
        component: () => import("@/views/material/skybox.vue"),
        meta: {
          title: "天空盒",
          activePath: "/material/skybox",
        },
      },
      {
        path: "fence",
        name: "material_fence",
        component: () => import("@/views/material/fence.vue"),
        meta: {
          title: "电子围栏",
          activePath: "/material/fence",
        },
      },
      {
        path: "wallPolygonDiffuse",
        name: "material_wallPolygonDiffuse",
        component: () => import("@/views/material/wallPolygonDiffuse.vue"),
        meta: {
          title: "多边形扩散墙",
          activePath: "/material/wallPolygonDiffuse",
        },
      },
      {
        path: "sea",
        name: "material_sea",
        component: () => import("@/views/material/sea.vue"),
        meta: {
          title: "动态海洋水",
          activePath: "/material/sea",
        },
      },
      {
        path: "volumRadar",
        name: "material_volumRadar",
        component: () => import("@/views/material/volumRadar.vue"),
        meta: {
          title: "立体雷达扫描",
          activePath: "/material/volumRadar",
        },
      },
    ],
  },
  {
    path: "/geometry",
    component: EmptyRouterView,
    meta: {
      title: "几何",
    },
    children: [
      {
        path: "entities",
        name: "geometry_entities",
        component: () => import("@/views/geometry/entities.vue"),
        meta: {
          title: "基本要素",
          activePath: "/geometry/entities",
        },
      },
      {
        path: "measure",
        name: "geometry_measure",
        component: () => import("@/views/geometry/measure.vue"),
        meta: {
          title: "量测",
          activePath: "/geometry/measure",
        },
      },
      {
        path: "draw",
        name: "geometry_draw",
        component: () => import("@/views/geometry/draw.vue"),
        meta: {
          title: "绘制",
          activePath: "/geometry/draw",
        },
      },
      {
        path: "arrow",
        name: "geometry_arrow",
        component: () => import("@/views/geometry/arrow.vue"),
        meta: {
          title: "态势图",
          activePath: "/geometry/arrow",
        },
      },
      {
        path: "terrainFlat",
        name: "geometry_terrainFlat",
        component: () => import("@/views/geometry/TerrainFlat.vue"),
        meta: {
          title: "地形压平",
          activePath: "/geometry/TerrainFlat",
        },
      },
      {
        path: "modelFlat",
        name: "geometry_modelFlat",
        component: () => import("@/views/geometry/ModelFlat.vue"),
        meta: {
          title: "模型压平",
          activePath: "/geometry/ModelFlat",
        },
      },
    ],
  },
  {
    path: "/scene",
    component: EmptyRouterView,
    meta: {
      title: "场景",
    },
    children: [
      {
        path: "waterFlood",
        name: "scene_waterFlood",
        component: () => import("@/views/scene/waterFlood.vue"),
        meta: {
          title: "水淹模拟",
          activePath: "/scene/waterFlood",
        },
      },
      {
        path: "heatMap",
        name: "scene_heatMap",
        component: () => import("@/views/scene/heatMap.vue"),
        meta: {
          title: "热力图",
          activePath: "/scene/heatMap",
        },
      },
      {
        path: "timeLine",
        name: "scene_timeLine",
        component: () => import("@/views/scene/timeLine.vue"),
        meta: {
          title: "时间轴",
          activePath: "/scene/timeLine",
        },
      },
      {
        path: "maskReverseSelect",
        name: "scene_maskReverseSelect",
        component: () => import("@/views/scene/maskReverseSelect.vue"),
        meta: {
          title: "遮罩反选",
          activePath: "/scene/maskReverseSelect",
        },
      },
    ],
  },
  {
    path: "/analysis",
    component: EmptyRouterView,
    meta: {
      title: "分析",
    },
    children: [
      {
        path: "skyLine",
        name: "analysis_skyLine",
        component: () => import("@/views/analysis/skyLine.vue"),
        meta: {
          title: "天际线分析",
          activePath: "/analysis/skyLine",
        },
      },
      {
        path: "elevation",
        name: "analysis_elevation",
        component: () => import("@/views/analysis/elevation.vue"),
        meta: {
          title: "高程（限高）分析",
          activePath: "/analysis/elevation",
        },
      },
      {
        path: "visibleRange",
        name: "analysis_visibleRange",
        component: () => import("@/views/analysis/visibleRange.vue"),
        meta: {
          title: "可视域分析",
          activePath: "/analysis/visibleRange",
        },
      },
      {
        path: "cutAndFill",
        name: "analysis_cutAndFill",
        component: () => import("@/views/analysis/cutAndFill.vue"),
        meta: {
          title: "方量分析",
          activePath: "/analysis/cutAndFill",
        },
      },
    ],
  },
  {
    path: "/highClass",
    component: EmptyRouterView,
    meta: {
      title: "高级功能",
    },
    children: [
      {
        path: "dynamicWater",
        name: "highClass_dynamicWater",
        component: () => import("@/views/highClass/dynamicWater.vue"),
        meta: {
          title: "动态网格水",
          activePath: "/highClass/dynamicWater",
        },
      },
      {
        path: "wind3D",
        name: "highClass_wind3D",
        component: () => import("@/views/highClass/wind3D.vue"),
        meta: {
          title: "3D风场",
          activePath: "/highClass/wind3D",
        },
      },
      {
        path: "roaming",
        name: "highClass_roaming",
        component: () => import("@/views/highClass/roaming.vue"),
        meta: {
          title: "插值运动",
          activePath: "/highClass/roaming",
        },
      },
      {
        path: "videoProjection",
        name: "highClass_videoProjection",
        component: () => import("@/views/highClass/videoProjection.vue"),
        meta: {
          title: "视频投射",
          activePath: "/highClass/videoProjection",
        },
      },
      {
        path: "defineRoad",
        name: "highClass_defineRoad",
        component: () => import("@/views/highClass/defineRoad.vue"),
        meta: {
          title: "自动化生成道路",
          activePath: "/highClass/defineRoad",
        },
      },
      {
        path: "radarEmission",
        name: "highClass_radarEmission",
        component: () => import("@/views/highClass/radarEmission.vue"),
        meta: {
          title: "雷达发射波",
          activePath: "/highClass/radarEmission",
        },
      },
      {
        path: "viewFrustum",
        name: "highClass_viewFrustum",
        component: () => import("@/views/highClass/viewFrustum.vue"),
        meta: {
          title: "GUI视锥体",
          activePath: "/highClass/viewFrustum",
        },
      },
      {
        path: "floorDivide",
        name: "highClass_floorDivide",
        component: () => import("@/views/highClass/floorDivide.vue"),
        meta: {
          title: "楼栋分层",
          activePath: "/highClass/floorDivide",
        },
      },
      {
        path: "potholing",
        name: "highClass_potholing",
        component: () => import("@/views/highClass/potholing.vue"),
        meta: {
          title: "地形挖洞",
          activePath: "/highClass/potholing",
        },
      },
      {
        path: "loadgif",
        name: "highClass_loadgif",
        component: () => import("@/views/highClass/loadgif.vue"),
        meta: {
          title: "gif动图",
          activePath: "/highClass/loadgif",
        },
      },
      {
        path: "typhoon",
        name: "highClass_typhoon",
        component: () => import("@/views/highClass/typhoon.vue"),
        meta: {
          title: "台风气象模拟",
          activePath: "/highClass/typhoon",
        },
      },
    ],
  },
  {
    path: "/models",
    component: EmptyRouterView,
    meta: {
      title: "模型",
    },
    children: [
      {
        path: "czml",
        name: "models_czml",
        component: () => import("@/views/models/czml.vue"),
        meta: {
          title: "卫星轨道czml",
          activePath: "/models/czml",
        },
      },
      {
        path: "s3m",
        name: "models_s3m",
        component: () => import("@/views/models/s3m.vue"),
        meta: {
          title: "超图s3m",
          activePath: "/models/s3m",
        },
      },
      {
        path: "photography",
        name: "models_photography",
        component: () => import("@/views/models/photography.vue"),
        meta: {
          title: "倾斜摄影",
          activePath: "/models/photography",
        },
      },
    ],
  },
];

export default routes;
